package io.cici.client;

import io.cici.common.response.InstanceInfoDTO;
import io.cici.common.response.ResultDTO;


public interface IClient {


    ResultDTO<Long> runJob(Long jobId, String instanceParams, long delayMS);


    ResultDTO<Void> stopInstance(Long instanceId);

    ResultDTO<Void> cancelInstance(Long instanceId);

    ResultDTO<Void> retryInstance(Long instanceId);

    ResultDTO<Integer> fetchInstanceStatus(Long instanceId);

    ResultDTO<InstanceInfoDTO> fetchInstanceInfo(Long instanceId);


}
